import request from '@/utils/request'

// 查询外派人员列表
export function listDealExpats(query) {
  return request({
    url: '/expats/dealExpats/list',
    method: 'post',
    data: query
  })
}

// 查询外派人员详细
export function getDealExpats(id) {
  return request({
    url: '/expats/dealExpats/' + id,
    method: 'get'
  })
}

// 修改外派结束时间
export function saveExpatsEndTime(data) {
  return request({
    url: '/expats/dealExpats/update',
    method: 'post',
    data: data
  })
}
// 保存外派人员
export function saveDealExpats(data) {
  return request({
    url: '/expats/dealExpats/save',
    method: 'post',
    data: data
  })
}
// 删除外派人员
export function delDealExpats(id) {
  return request({
    url: '/expats/dealExpats/' + id,
    method: 'delete'
  })
}

// 导出外派人员
export function exportDealExpats(query) {
  return request({
    url: '/expats/dealExpats/export',
    method: 'get',
    params: query
  })
}
